<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonGalleryItem类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_gallery_item.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_s_a_ribbon_gallery_item-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonGalleryItem类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>类似QStandardItem的GalleryItem  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_gallery_item_8h_source.html">SARibbonGalleryItem.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0f0d2f52829d486eee9d8c265321e776" id="r_a0f0d2f52829d486eee9d8c265321e776"><td class="memItemLeft" align="right" valign="top"><a id="a0f0d2f52829d486eee9d8c265321e776" name="a0f0d2f52829d486eee9d8c265321e776"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGalleryItem</b> (const QString &amp;text, const QIcon &amp;icon)</td></tr>
<tr class="separator:a0f0d2f52829d486eee9d8c265321e776"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16c63d958e4e31b77d292d5f2e24266d" id="r_a16c63d958e4e31b77d292d5f2e24266d"><td class="memItemLeft" align="right" valign="top"><a id="a16c63d958e4e31b77d292d5f2e24266d" name="a16c63d958e4e31b77d292d5f2e24266d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGalleryItem</b> (QAction *act)</td></tr>
<tr class="separator:a16c63d958e4e31b77d292d5f2e24266d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa6753ffb66c8854940a184666eb9143" id="r_afa6753ffb66c8854940a184666eb9143"><td class="memItemLeft" align="right" valign="top"><a id="afa6753ffb66c8854940a184666eb9143" name="afa6753ffb66c8854940a184666eb9143"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setData</b> (int role, const QVariant &amp;data)</td></tr>
<tr class="separator:afa6753ffb66c8854940a184666eb9143"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91bb1bf2f613150567b890f61998c39" id="r_aa91bb1bf2f613150567b890f61998c39"><td class="memItemLeft" align="right" valign="top"><a id="aa91bb1bf2f613150567b890f61998c39" name="aa91bb1bf2f613150567b890f61998c39"></a>
virtual QVariant&#160;</td><td class="memItemRight" valign="bottom"><b>data</b> (int role) const</td></tr>
<tr class="separator:aa91bb1bf2f613150567b890f61998c39"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8755da584a6de0ee464d5794fe0f2ba1" id="r_a8755da584a6de0ee464d5794fe0f2ba1"><td class="memItemLeft" align="right" valign="top"><a id="a8755da584a6de0ee464d5794fe0f2ba1" name="a8755da584a6de0ee464d5794fe0f2ba1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setText</b> (const QString &amp;text)</td></tr>
<tr class="separator:a8755da584a6de0ee464d5794fe0f2ba1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a337dd00b266f049f1a114a034813b38b" id="r_a337dd00b266f049f1a114a034813b38b"><td class="memItemLeft" align="right" valign="top"><a id="a337dd00b266f049f1a114a034813b38b" name="a337dd00b266f049f1a114a034813b38b"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>text</b> () const</td></tr>
<tr class="separator:a337dd00b266f049f1a114a034813b38b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add8f229e8b5e56298118707fbfa2077a" id="r_add8f229e8b5e56298118707fbfa2077a"><td class="memItemLeft" align="right" valign="top"><a id="add8f229e8b5e56298118707fbfa2077a" name="add8f229e8b5e56298118707fbfa2077a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setToolTip</b> (const QString &amp;text)</td></tr>
<tr class="separator:add8f229e8b5e56298118707fbfa2077a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45290df97ccdfc19477fbb4983c13ee2" id="r_a45290df97ccdfc19477fbb4983c13ee2"><td class="memItemLeft" align="right" valign="top"><a id="a45290df97ccdfc19477fbb4983c13ee2" name="a45290df97ccdfc19477fbb4983c13ee2"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>toolTip</b> () const</td></tr>
<tr class="separator:a45290df97ccdfc19477fbb4983c13ee2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac67e05c561bdd4ddf1b90a3d181db734" id="r_ac67e05c561bdd4ddf1b90a3d181db734"><td class="memItemLeft" align="right" valign="top"><a id="ac67e05c561bdd4ddf1b90a3d181db734" name="ac67e05c561bdd4ddf1b90a3d181db734"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setIcon</b> (const QIcon &amp;ico)</td></tr>
<tr class="separator:ac67e05c561bdd4ddf1b90a3d181db734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf2fbd3baa41bfcee4210fef1b333d53" id="r_acf2fbd3baa41bfcee4210fef1b333d53"><td class="memItemLeft" align="right" valign="top"><a id="acf2fbd3baa41bfcee4210fef1b333d53" name="acf2fbd3baa41bfcee4210fef1b333d53"></a>
QIcon&#160;</td><td class="memItemRight" valign="bottom"><b>icon</b> () const</td></tr>
<tr class="separator:acf2fbd3baa41bfcee4210fef1b333d53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05ad503cd1ee645ecf97a9cf3efdf242" id="r_a05ad503cd1ee645ecf97a9cf3efdf242"><td class="memItemLeft" align="right" valign="top"><a id="a05ad503cd1ee645ecf97a9cf3efdf242" name="a05ad503cd1ee645ecf97a9cf3efdf242"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isSelectable</b> () const</td></tr>
<tr class="separator:a05ad503cd1ee645ecf97a9cf3efdf242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a399492240977e5d0df66e440da9648fb" id="r_a399492240977e5d0df66e440da9648fb"><td class="memItemLeft" align="right" valign="top"><a id="a399492240977e5d0df66e440da9648fb" name="a399492240977e5d0df66e440da9648fb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSelectable</b> (bool isSelectable)</td></tr>
<tr class="separator:a399492240977e5d0df66e440da9648fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7e9b570c58f2b86bd813d4a1908905f" id="r_ae7e9b570c58f2b86bd813d4a1908905f"><td class="memItemLeft" align="right" valign="top"><a id="ae7e9b570c58f2b86bd813d4a1908905f" name="ae7e9b570c58f2b86bd813d4a1908905f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEnable</b> () const</td></tr>
<tr class="separator:ae7e9b570c58f2b86bd813d4a1908905f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a064457d1f4e29a8cee64f5201c1a82e5" id="r_a064457d1f4e29a8cee64f5201c1a82e5"><td class="memItemLeft" align="right" valign="top"><a id="a064457d1f4e29a8cee64f5201c1a82e5" name="a064457d1f4e29a8cee64f5201c1a82e5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setEnable</b> (bool isEnable)</td></tr>
<tr class="separator:a064457d1f4e29a8cee64f5201c1a82e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7701a86ab6ad272e0a7680d485b82739" id="r_a7701a86ab6ad272e0a7680d485b82739"><td class="memItemLeft" align="right" valign="top"><a id="a7701a86ab6ad272e0a7680d485b82739" name="a7701a86ab6ad272e0a7680d485b82739"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setFlags</b> (Qt::ItemFlags flag)</td></tr>
<tr class="separator:a7701a86ab6ad272e0a7680d485b82739"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a225725fa7a401adf458faba654d7be" id="r_a5a225725fa7a401adf458faba654d7be"><td class="memItemLeft" align="right" valign="top"><a id="a5a225725fa7a401adf458faba654d7be" name="a5a225725fa7a401adf458faba654d7be"></a>
virtual Qt::ItemFlags&#160;</td><td class="memItemRight" valign="bottom"><b>flags</b> () const</td></tr>
<tr class="separator:a5a225725fa7a401adf458faba654d7be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f0343b7ddcabebe1a2ca99fd0d4a7af" id="r_a9f0343b7ddcabebe1a2ca99fd0d4a7af"><td class="memItemLeft" align="right" valign="top"><a id="a9f0343b7ddcabebe1a2ca99fd0d4a7af" name="a9f0343b7ddcabebe1a2ca99fd0d4a7af"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAction</b> (QAction *act)</td></tr>
<tr class="separator:a9f0343b7ddcabebe1a2ca99fd0d4a7af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa792a1556980c0c7d327aaadb5447ff4" id="r_aa792a1556980c0c7d327aaadb5447ff4"><td class="memItemLeft" align="right" valign="top"><a id="aa792a1556980c0c7d327aaadb5447ff4" name="aa792a1556980c0c7d327aaadb5447ff4"></a>
QAction *&#160;</td><td class="memItemRight" valign="bottom"><b>action</b> ()</td></tr>
<tr class="separator:aa792a1556980c0c7d327aaadb5447ff4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac675b1e8600ce09a5464909b2357a7c2" id="r_ac675b1e8600ce09a5464909b2357a7c2"><td class="memItemLeft" align="right" valign="top"><a id="ac675b1e8600ce09a5464909b2357a7c2" name="ac675b1e8600ce09a5464909b2357a7c2"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTextAlignment</b> (Qt::Alignment a)</td></tr>
<tr class="separator:ac675b1e8600ce09a5464909b2357a7c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b835d97e46bf878cb484fef145e18c6" id="r_a9b835d97e46bf878cb484fef145e18c6"><td class="memItemLeft" align="right" valign="top"><a id="a9b835d97e46bf878cb484fef145e18c6" name="a9b835d97e46bf878cb484fef145e18c6"></a>
Qt::Alignment&#160;</td><td class="memItemRight" valign="bottom"><b>textAlignment</b> () const</td></tr>
<tr class="separator:a9b835d97e46bf878cb484fef145e18c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a8dc65d814b4c5cad5473b07fd914d8e2" id="r_a8dc65d814b4c5cad5473b07fd914d8e2"><td class="memItemLeft" align="right" valign="top"><a id="a8dc65d814b4c5cad5473b07fd914d8e2" name="a8dc65d814b4c5cad5473b07fd914d8e2"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGalleryGroupModel</b></td></tr>
<tr class="separator:a8dc65d814b4c5cad5473b07fd914d8e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>类似QStandardItem的GalleryItem </p>
</div><hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_gallery_item_8h_source.html">SARibbonGalleryItem.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonGalleryItem.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_gallery_item.html">SARibbonGalleryItem</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
